package com.luyun.frogpay.base.baseclass;

import com.trello.rxlifecycle3.LifecycleTransformer;

/**
 * @author 无人区
 * @date 2019/10/27 20:17
 * @desc:
 */
public interface BaseContract {

    interface BaseView {
        /**
         * 绑定生命周期
         * @param <T>
         * @return
         */
        <T> LifecycleTransformer<T> bindToLife();

        void isShowLoading(boolean isShow);

    }

    interface BasePresenter<T extends BaseView> {
        /**
         * 绑定 view
         * @param view
         */
        void attachView(T view);

        /**
         * 分离 view
         */
        void detachView();
    }
}
